# hello.s

.section    .data
msg:
    .ascii "Hello world!\n"

.section    .text
    .globl	main

main:
    mov     $4,     %rax
    mov     $1,     %rbx
    mov     $msg,   %rcx
    mov     $14,    %rdx
    int $0x80

    mov     $1,     %rax
    mov     $0,     %rbx
    int $0x80